<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>用户充值明细</a></li>
    </ul>
    <form class="well form-search" action="{:U('Finance/water_list')}" method="post" >
        用户电话：<input type="text" name="mobile" style="width: 100px;" value="{$formget.mobile}">
        支付账号：<input type="text" name="pay_account" style="width: 100px;" value="{$formget.pay_account}">
        支付时间：
        <input type="text" name="start_time" class="js-date" value="{$formget.start_time|default=''}" style="width: 90px;" autocomplete="off">-
        <input type="text" class="js-date" name="end_time" value="{$formget.end_time}" style="width: 90px;" autocomplete="off"> &nbsp; &nbsp;
        &nbsp;&nbsp;
        支付方式：
        <select class="select_2" name="pay_method"  style="width: 100px;" >
            <option value='-1'>全部</option>
            <option value='1'{:I("pay_method")==1?selected:''}>支付宝</option>
            <option value='2'{:I("pay_method")==2?selected:''}>微信</option>
        </select> &nbsp;&nbsp;
        支付状态：
        <select class="select_2" name="status"  style="width: 100px;" >
            <option value='-1' {:I("status")==-1?selected:''}>全部</option>
            <option value='0'{:I("status")==0?selected:''}>未支付</option>
            <option value='1'{:I("status")==1?selected:''}>支付成功</option>
            <option value='2'{:I("status")==2?selected:''}>支付失败</option>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    <form method="post" class="js-ajax-form">
       <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th align="center">序号</th>
                <th>用户电话</th>
                <th>支付方式</th>
                <th>支付账号</th>
                <th>支付时间</th>
                <th>支付状态</th>
                <th>支付金额</th>
                <th>凭证号</th>
            </tr>
            </thead>
            <tbody>
            <php>$pay_methods=array("1"=>'支付宝',"2"=>'微信');
                $statuss=array("0"=>'未支付',"1"=>'成功',"2"=>'失败');
            </php>
            <foreach name="datas" item="vo" key="k">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.recharge_record_id}" title="ID:{$vo.recharge_record_id}"></td>
                    <td align="center">{$k+1}</td>
                    <td>{$vo.user_id|getUserName}</td>
                    <td>{$pay_methods[$vo[pay_method]]}</td>
                    <td>{$vo.pay_account}</td>
                    <td>{$vo.pay_time}</td>
                    <td>{$statuss[$vo[status]]}</td>
                    <td>{$vo[recharge_amount]}</td>
                    <td>{$vo.voucher_no}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($datas)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>

</body>
</html>